package com.atgg.condition;

import com.atgg.beans.Blue;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class MyImportSelector implements ImportSelector {
    /**
     *
     * @param annotationMetadata:获取标注@Import注解的类的所有注解信息
     * @return
     */
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {


        return new String[]{"com.atgg.beans.Red","com.atgg.beans.Blue"};
    }
}
